{{- block "header" .}}

<style>
 .bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
 }

 @media (min-width: 768px) {
  .bd-placeholder-img-lg {
   font-size: 3.5rem;
  }
 }

 .form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: auto;
 }
 .form-signin .checkbox {
  font-weight: 400;
 }
 .form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
 }
 .form-signin .form-control:focus {
  z-index: 2;
 }
 .form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
 }
 .form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
 }
 main{
  margin-left: unset;
  margin: auto;
 }
</style>

{{- end}}

{{- block "title" . }}
<title>Apinto Dashboard</title>
{{- end -}}

{{- block "left" . -}}
<!--none-->
{{- end -}}
{{- block "content" . -}}

<form class="form-signin" method="post" action="/login">
 <img class="mb-4" src="/img/apinto.svg" alt="" width="335" height="72">
 <h1 class="h3 mb-3 font-weight-normal">登录</h1>
 <label for="inputUsername" class="sr-only">用户名</label>
 <input type="text" id="inputUsername" name="username" class="form-control" placeholder="Username" required autofocus>
 <label for="inputPassword" class="sr-only">密码</label>
 <input type="password" id="inputPassword" name="password" class="form-control" placeholder="Password" required>
 <div class="checkbox mb-3">
  <label>
   <input type="checkbox" name="remember" value="remember-me"> Remember me
  </label>
 </div>
 <input type="hidden" name="callback" value="{{.callback}}"/>
 <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
 <p class="mt-5 mb-3 text-muted">&copy; 2022-2023</p>
</form>
{{- end -}}
{{- block "script" . -}}
{{if .code}}
<script>
 common.message("{{.message}}","danger")
</script>
{{end}}
{{- end -}}